﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>
<%@ Import Namespace="Cloudix.Common" %>
<%@ Import Namespace="Cloudix.Common.ContentProviders" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	XmlContentProvider
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="HeaderContent" runat="server">
	<%       
		// Determine the path of the Xml datasource file
		var filePath = System.IO.Path.Combine(HttpContext.Current.Request.PhysicalApplicationPath, @"App_Data\XmlDemoData.xml");
		
		// Register the ScriptManager using the XmlContentProvider
		// Note: this overloads the default CloudixScriptManager as registered in Site.master
		var provider = new XmlContentProvider(filePath);
		CloudixScriptManager.RegisterScriptManager(provider, ContentEditMode.Editable);
	%>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
	<h2>
		<%--Render the title--%>
		<% Html.RenderHtmlContent("F3194D1F-E18C-4E85-ABD3-FEBF2287F37B"); %>
	</h2>
	
	<p>
		<%--Render the content--%>
		<% Html.RenderHtmlContent("43DC7747-CBC4-40F6-BC14-F15C687DBDD7"); %>
	</p>
</asp:Content>

